<script type="text/html" id="tpl_addadmin">
<div class="public-tpl-row1">
    <form class="layui-form" id="tpl_addadmin_form" action="{:url('index/clinic.admin/dialog_add')}">
    	<input type="hidden" name="id" value="" autocomplete="off" class="layui-input">
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>真实姓名</label>
				<div class="layui-input-inline">
				<input type="text" name="nickname" autocomplete="off" maxlength="5" class="layui-input">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>手机号码</label>
				<div class="layui-input-inline">
				<input type="text" name="user_mobile" autocomplete="off" maxlength="11" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item captcha-div">
			<div class="layui-inline" style="margin-right:0px;"><label class="layui-form-label"><i class="c-red">*</i>验证码</label>
				<div class="layui-input-inline" style="width: 70px;margin-right:0px;">
				<input type="text" name="captcha_code" autocomplete="off" class="layui-input" maxlength="10">
				</div>
			</div>
			<img src="" alt="点击更换验证码" style="margin-top:-4px;height: 35px;line-height: 35px;padding: 0 4px;font-size:12px;margin-right:13px;"/>
			<div class="layui-inline" style="margin-right:0px;"><label class="layui-form-label" style="width: 95px;"><i class="c-red">*</i>手机验证码</label>
				<div class="layui-input-inline" style="width: 118px;margin-right:0px;">
				<input type="text" name="phone_code" autocomplete="off" class="layui-input" maxlength="8">
				</div>
			</div>
			<a class="layui-btn layui-btn-sm layui-btn-normal tel-codebtn" style="margin-top:-4px;height: 35px;line-height: 35px;padding: 0 4px;font-size:12px;margin-right:13px;">点击发送</a>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>人员角色</label>
				<div class="layui-input-inline">
				<select name="group_id">
                    <option value="0">暂不分配角色</option>
                    {volist name="group_list" id="vo"}
                    <option value="{$vo.id}">{$vo.name}</option>
                    {/volist}
                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>人员职位</label>
				<div class="layui-input-inline">
				<select name="zhiwei_code" lay-search>
                    {volist name="zhiwei_list" id="zw"}
                    <option value="{$zw.id}">{$zw.name}</option>
                    {/volist}
                </select>
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline" style="margin-right:0px;"><label class="layui-form-label"><i class="c-red">*</i>登录账号</label>
				<div class="layui-input-inline" style="width: 136px;margin-right:0px;">
				<input type="text" name="user_name" autocomplete="off" class="layui-input" readonly="true" maxlength="15">
				</div>
			</div>
			<a class="layui-btn layui-btn-sm layui-btn-normal" style="margin-top:-4px;height: 35px;line-height: 35px;padding: 0 4px;font-size:12px;margin-right:13px;" onclick="_loadSysAccount('#tpl_addadmin_form :input[name=\'user_name\']');">系统账号</a>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>登录密码</label>
				<div class="layui-input-inline">
				<input type="text" name="user_pwd" autocomplete="off" class="layui-input" maxlength="32">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>所属科室</label>
				<div class="layui-input-inline">
				<select name="keshi_code" lay-search>
                    {volist name="keshi_list" id="vo"}
                    <option value="{$vo.id}">{$vo.name}</option>
                    {/volist}
                </select>
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label"><i class="c-red">*</i>人员工号</label>
				<div class="layui-input-inline">
				<input type="text" name="gonghao_code" maxlength="10" autocomplete="off" class="layui-input">
				</div>
			</div>
        </div>
        <div class="layui-form-item">
			<div class="layui-inline"><label class="layui-form-label">性别</label>
				<div class="layui-input-inline">
				<input type="radio" name="sex" value="1" title="男" checked>
	            <input type="radio" name="sex" value="2" title="女">
	            <input type="radio" name="sex" value="0" title="保密">
				</div>
			</div>
			<div class="layui-inline"><label class="layui-form-label">启用状态</label>
				<div class="layui-input-inline">
				<input type="radio" name="status" value="1" title="已启用" checked>
	            <input type="radio" name="status" value="0" title="已停用">
				</div>
			</div>
        </div>
    </form>
</div>
</script>